kodlamada hata
KODLARDA HATA ALIYORUM Bİ BAKABİLİRMİSİNİZ?
[code]
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
const int prob = A0;
int nem
int sclPin = A5;
int sdaPin = A4;
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
lcd.init();
lcd.backlight();
lcd.clear();
delay(1000);
pinMode(2, OUTPUT);
}
void loop() {
nem = analogRead(prob);
if (nem <=250)
{
digitalWrite(role, LOW);
lcd.setCursor(0, 0);
lcd.print("NEM = % ");
lcd.setCursor(11,0);
lcd.print(prob, 1);
lcd.setCursor(0, 1);
lcd.print("SULAMA KAPALI");
delay(1000)
}
else if (nem > 250 && nem <= 450)
{
digitalWrite(role, LOW);
lcd.setCursor(0, 0);
lcd.print("NEM = % ");
lcd.setCursor(11,0);
lcd.print(prob, 1);
lcd.setCursor(0, 1);
lcd.print("SULAMA KAPALI");
delay(1000)
}
else if (nem > 450 && nem <= 650)
{
digitalWrite(role, LOW);
lcd.setCursor(0, 0);
lcd.print("NEM = % ");
lcd.setCursor(11,0);
lcd.print(prob, 1);
lcd.setCursor(0, 1);
lcd.print("SULAMA KAPALI");
delay(1000)
}
else if (nem >650 && nem <= 850)
{
digitalWrite(role, HIGH);
lcd.setCursor(0, 0);
lcd.print("NEM = % ");
lcd.setCursor(11,0);
lcd.print(prob, 1);
lcd.setCursor(0, 1);
lcd.print("SULAMA AÇIK");
delay(1000)
}
else if (nem >850 && nem <= 1023)
{
digitalWrite(role, HIGH);
lcd.setCursor(0, 0);
lcd.print("NEM = % ");
lcd.setCursor(11,0);
lcd.print(prob, 1);
lcd.setCursor(0, 1);
lcd.print("SULAMA AÇIK");
delay(1000)
}
}
[/code]